package cn.yc.student.config;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@MapperScan("cn.yc.student.mapper")
@Configuration
public class MySpringMVCConfiguration implements WebMvcConfigurer {
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
//        registry.addViewController("login01").setViewName("login");
//        registry.addViewController("loginUser").setViewName("login");
        registry.addViewController("index").setViewName("student");
    }

}
